***************************************************
****----			Figure 7	  		   ----****
***************************************************

clear all
cap log close 
set more off

****---- Change directory

global data "/Users/Replication material/Data"

****---- Figure 7_1

use "$data/dataset_replication.dta", clear


cibar gini_index, over(aug_dec_18_D) level(95) bargap(4) barcolor(navy midblue) baropts(lwidth(thin) barw(0.8 0.8)) graphopts(graphregion(color(white)) ytitle("Gini Index 1924") legend(order(1 "no ill soldiers in hometown" 2 "ill soldiers in hometown")) ylabel(0.35 (0.05) 0.45, angle(45)))

****---- Figure 7_2

use "$data/dataset_replication_2018.dta", clear


keep if sample_1924==1
cibar gini2018, over(aug_dec_18_sdD) level(95) bargap(4) barcolor(navy midblue) baropts(lwidth(thin) barw(0.8 0.8)) graphopts(graphregion(color(white)) ytitle("Gini Index 2018") legend(order(1 "no ill soldiers in hometown" 2 "ill soldiers in hometown")) ylabel(0.35 (0.05) 0.45, angle(45)))

